package com.hy.mydesktop.client.mvc.desktop;

import com.extjs.gxt.ui.client.mvc.AppEvent;
import com.extjs.gxt.ui.client.mvc.Controller;
import com.extjs.gxt.ui.client.mvc.View;
import com.extjs.gxt.ui.client.widget.Component;
import com.extjs.gxt.ui.client.widget.menu.MenuItem;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
import com.hy.mydesktop.client.mvc.base.BaseDisplay;
import com.hy.mydesktop.client.mvc.base.BasePresenterAndView;
import com.hy.mydesktop.client.mvc.base.BasePresenterAndViewTemplate;
import com.hy.mydesktop.client.mvc.base.Presenter;
import com.hy.mydesktop.client.mvc.window.WindowPresenter.IWindowDisplay;

public class DesktopMenuItemDisplay    implements BaseDisplay{

	MenuItem menuItem = null;
	public DesktopMenuItemDisplay(MenuItem menuItem) {
		this.menuItem=menuItem;
	}

	@Override
	public boolean add(Widget widget) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public Component getComponent() {
		
		return menuItem;
	}

	@Override
	public void setComponent(Component component) {
		menuItem=(MenuItem)component;
		
	}

	@Override
	public Widget asWidget() {
		// TODO Auto-generated method stub
		return null;
	}

	

}
